package com.changcheng.project.obupublishlog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.obupublishlog.mapper.AObuPublishLogMapper;
import com.changcheng.project.obupublishlog.domain.AObuPublishLog;
import com.changcheng.project.obupublishlog.service.IAObuPublishLogService;
import com.changcheng.common.utils.text.Convert;

/**
 * obu发布记录Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-31
 */
@Service
public class AObuPublishLogServiceImpl implements IAObuPublishLogService 
{
    @Autowired
    private AObuPublishLogMapper aObuPublishLogMapper;

    /**
     * 查询obu发布记录
     * 
     * @param id obu发布记录ID
     * @return obu发布记录
     */
    @Override
    public AObuPublishLog selectAObuPublishLogById(Long id)
    {
        return aObuPublishLogMapper.selectAObuPublishLogById(id);
    }

    /**
     * 查询obu发布记录列表
     * 
     * @param aObuPublishLog obu发布记录
     * @return obu发布记录
     */
    @Override
    public List<AObuPublishLog> selectAObuPublishLogList(AObuPublishLog aObuPublishLog)
    {
        return aObuPublishLogMapper.selectAObuPublishLogList(aObuPublishLog);
    }

    /**
     * 新增obu发布记录
     * 
     * @param aObuPublishLog obu发布记录
     * @return 结果
     */
    @Override
    public int insertAObuPublishLog(AObuPublishLog aObuPublishLog)
    {
        return aObuPublishLogMapper.insertAObuPublishLog(aObuPublishLog);
    }

    /**
     * 修改obu发布记录
     * 
     * @param aObuPublishLog obu发布记录
     * @return 结果
     */
    @Override
    public int updateAObuPublishLog(AObuPublishLog aObuPublishLog)
    {
        return aObuPublishLogMapper.updateAObuPublishLog(aObuPublishLog);
    }

    /**
     * 删除obu发布记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAObuPublishLogByIds(String ids)
    {
        return aObuPublishLogMapper.deleteAObuPublishLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除obu发布记录信息
     * 
     * @param id obu发布记录ID
     * @return 结果
     */
    @Override
    public int deleteAObuPublishLogById(Long id)
    {
        return aObuPublishLogMapper.deleteAObuPublishLogById(id);
    }
}
